<div class='container-fluid'>
<?php echo View::make('share.backend_nav')->with('nav', Config::get('app.nav.product.sub'));?>


<div class='board'>
  <div style='height:720px;min-height:720px;border:3px solid #ddd;'>
    <div class='header'>
      <p>手动添加商品</p>
    </div>
    <div class='body'>
<form class="form-horizontal" style='margin-top:60px;'>
  <div class="control-group" style='height:30px;'>
    <label class='control-label' for='category_id'>商品类型</label>
    <div class='controls'>
    <select name='category_id'>
      <option value=0>请选择</option>
      <?php $cates = Category::all();?>
      <?php foreach ($cates as $c):?>
      <option value='<?php echo $c->id;?>'><?php echo $c->cname;?></option>
      <?php endforeach;?>
    </select>
    </div>
  </div>
  <div class="control-group" style='height:30px;'>
    <label class="control-label" for="title">商品标题</label>
    <div class="controls">
      <input type="text" name="title" autocomplete='off'>
    </div>
  </div>
  <div class="control-group" style='height:30px;'>
    <label class="control-label" for="url">商品链接</label>
    <div class="controls">
      <input type="text" name="url" autocomplete='off'>
    </div>
  </div>
  <div class="control-group" style='height:30px;'>
    <label class="control-label" for="mall">来源网站</label>
    <div class="controls">
      <input type="text" name="mall" autocomplete='off'>
    </div>
  </div>
  <div class="control-group" style='height:30px;'>
    <label class="control-label" for="price">原价</label>
    <div class="controls">
      <div class="input-prepend input-append">
        <span class="add-on">￥</span>
	<input type="text" class='input-small' name="price" autocomplete='off'>
      </div>
    </div>
  </div>
  <div class="control-group" style='height:30px;'>
    <label class="control-label" for="coupon_price">折扣价</label>
    <div class="controls">
      <div class="input-prepend input-append">
        <span class="add-on">￥</span>
	<input type="text" class='input-small' name="coupon_price" autocomplete='off'>
      </div>
    </div>
  </div>
  <div class="control-group" style='height:30px;'>
    <label class="control-label" for="tag">Tag</label>
    <div class="controls">
      <input type="text" name="tag" autocomplete='off'>
    </div>
  </div>
  <div class="control-group" style='height:30px;'>
    <label class="control-label" for="pic_url">图片链接</label>
    <div class="controls">
      <input type="text" name="pic_url" autocomplete='off'> 或 <a href='javascript:void(0)' class='btn btn-mini btn-success'>上传</a>
    </div>
  </div>
  <div class="control-group" style='height:100px;'>
    <label class="control-label" for="url">描述</label>
    <div class="controls">
      <textarea rows='5' class='span5'></textarea>
    </div>
  </div>
  <div class="control-group" style='height:30px;'>
    <div class="controls">
      <button type="submit" class="btn btn-success">添加</button>
    </div>
  </div>
</form>
    </div>
  </div>
</div>


</div>
